﻿using System;
using JStore.Core.Enums;
using SpeadFrm.ORM;

namespace JStore.Core.Entities
{
    /// <summary>
    ///
    /// </summary>
    [TableName("UserInfo"), PrimaryKey("UserId", autoIncrement = false)]
    public class UserInfo
    {

        /// <summary>
        /// 
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int? JdUserId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string JdUserName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int? TjUserId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string TjUserName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Mobile { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int? JdSort { get; set; }

        public CardClass CardClass { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int CardType { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int UserTypeId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public decimal? JoinMoney { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public decimal? RealMoney { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public bool IsArea { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int? AreaUserId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string AreaUserName { get; set; }

        public DateTime CreateDate { get; set; }
    }
}

